<%@page import="model.*"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%User u = new User();
    	if(!u.isAdmin((String)session.getAttribute("lv"))){
    	response.sendRedirect("../index.jsp");	
    	}
    	String site = (String ) request.getParameter("site"); 
    	String i = "";
    	if(site== null){i="view-categories.jsp";}
    	else if (site.trim().equals("")){i="view-categories.jsp";}
    	else if (site.equals("a")){i= "add-categories.jsp";} 
    	else if(site.equals("e")){i="edit-categories.jsp";} 
%>
<jsp:include page="../include/header.jsp"></jsp:include>
<jsp:include page="../include/slide-show.jsp"></jsp:include>
<div id="content-container">
	<jsp:include page="../include/sidebar-admin.jsp"></jsp:include>
	<div id="content">
	<jsp:include page="<%=i %>"></jsp:include>
	</div>
	<!--end content-->
	<%--   <jsp:include page="../include/sidebar-b.jsp"></jsp:include> --%>
	<jsp:include page="../include/footer.jsp"></jsp:include>